package service

import (
	"context"
	v1 "qiyu-contact/api/common/v1"
)

type ICommonService interface {
	Upload(ctx context.Context, req *v1.UploadReq) (res *v1.UploadRes, err error)
}

var localCommon ICommonService

func Common() ICommonService {
	if localCommon == nil {
		panic("ICommonService 接口未实现或未注册")
	}
	return localCommon
}
func RegisterCommon(common ICommonService) {
	localCommon = common
}
